﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication2
{
    class Perf
    {

        public int _lifeTime = 0;
        public int _NbMobKill = 0;
        public int _Nbrun = 0;
       
        public Perf()
        {
        }

        public Perf(int lifeTime, int NbMobKill, int NbRun)
        {
            this._lifeTime = lifeTime;
            this._NbMobKill = NbMobKill;
            this._Nbrun = NbRun;
        }

        public static Perf operator + (Perf a, Perf b)
        {
            return new Perf(a._lifeTime + b._lifeTime, a._NbMobKill + b._NbMobKill, a._Nbrun + b._Nbrun);
        }

        public static Perf operator / (Perf a, int b)
        {
            return new Perf(a._lifeTime / b, a._NbMobKill  / b, a._Nbrun / b);
        }
    }
}
